package com.yeyks.hotel.param;

import com.yeyks.common.param.PageParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class HotelInfoB2cHotelSearchParam extends PageParam {

    @ApiModelProperty(value = "经度")
    @NotNull(message = "经度必填")
    private Double positionX;

    @ApiModelProperty(value = "纬度")
    @NotNull(message = "纬度必填")
    private Double positionY;

    @ApiModelProperty(value = "开始时间")
    @NotNull(message = "开始时间必填")
    private Date startDate;

    @ApiModelProperty(value = "结束时间")
    @NotNull(message = "结束时间必填")
    private Date endDate;

    @ApiModelProperty(value = "酒店名称")
    private String hotelName;

    @ApiModelProperty(value = "排序,1只能,2距离,3价格")
    private Integer sort = 1;

    @ApiModelProperty(value = "距离",hidden = true)
    private Integer distance = 5000;

}
